package com.ssd.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ssd.entity.OrderDetailEntity;
import com.ssd.viewmodel.OrderDetailViewModel;
import com.ssd.viewmodel.OrderDetailViewVOModel;
import com.ssd.vo.SkuInfoVO;

import java.util.List;

public interface OrderDetailService extends IService<OrderDetailEntity> {
    /**
     * 查找订单的所有商品
     * @param orderId
     * @return
     */
    List<OrderDetailViewModel> getListByOrderId(Long orderId);

    public List<OrderDetailViewVOModel> getListByOrderIdA(Long orderId) ;

    List<com.ssd.api.order.dto.OrderDetailViewModel> getListByOrderId1(Long orderId);

    /**
     * 批量插入订单商品
     * @param skuList
     * @param orderId
     * @return
     */
    Boolean insertList(List<SkuInfoVO> skuList, Long orderId);
}
